import request from '@/utils/request'

// 查询预约体检记录列表
export function listExaminations(query) {
  return request({
    url: '/system/examinations/list',
    method: 'get',
    params: query
  })
}

// 查询预约体检记录详细
export function getExaminations(id) {
  return request({
    url: '/system/examinations/' + id,
    method: 'get'
  })
}

// 新增预约体检记录
export function addExaminations(data) {
  return request({
    url: '/system/examinations',
    method: 'post',
    data: data
  })
}

// 修改预约体检记录
export function updateExaminations(data) {
  return request({
    url: '/system/examinations',
    method: 'put',
    data: data
  })
}

// 删除预约体检记录
export function delExaminations(id) {
  return request({
    url: '/system/examinations/' + id,
    method: 'delete'
  })
}
